<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <dl class="fieldlist" data-name="row[value]" data-template="valuetpl">
           <dd>
               <ins>{:__('Value')}</ins>
           </dd>
           <dd>
               <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
           </dd>
           <textarea name="row[value]" class="form-control hide" cols="30" rows="5"></textarea>
    </dl>
    <!--定义模板，模板语法使用Art-Template模板语法-->
    <script type="text/html" id="valuetpl">
        <dd class="form-inline">
            <input type="text" name="<%=name%>[<%=index%>]" class="form-control" value="<%=row%>" size="10"> 
            <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        </dd>
    </script>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
